﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
namespace PKI
{
    public partial class Zalogowany : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }

        protected void LoginView1_ViewChanged(object sender, EventArgs e)
        {

        }

        protected void LogOutButton_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            //Roles.DeleteCookie();
            Session.Clear();
            Response.Redirect(Request.Url.AbsolutePath);
        }
    }
}